package com.javasm.finance.entity;

import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum  CodeAndMsg {
    LOGIN_SUCCESS(2000,"登陆成功!"),
    LOGIN_FAILED(4000,"登录失败!"),
    QUERY_SUCCESS(2001,"成功查询到数据"),
    QUERY_FAILED(4001,"没有查询到数据"),
    OPERATE_SUCCESS(2002, "操作成功"),
    OPERATE_FAILED(4002, "操作失败"),
    NO_LOGIN(4005,"没有登录"),
    NO_AUTH(4006,"没有权限"),
    LOGOUT_SUCCESS(4007,"登出成功");
    private Integer returnCode;
    private String returnMsg;
}
